/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package systole.view.crud;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import systole.view.crud.controller.ControllerEntityView;

/**
 *
 * @author jmj
 */
public class TabelMouseAdapter extends MouseAdapter {

    private ControllerEntityView controller;

    /**
     * @param controller
     */
    public TabelMouseAdapter(ControllerEntityView controller) {
        this.controller= controller;
    }

    @Override
    public void mouseClicked(MouseEvent e) {

        if (e.getClickCount() == 2) {
            this.controller.editEntity();
        }

    }
}
